<template>
  <div class="sh-item" :style="{marginBottom:MGB}">
    <div class="sheetavatar" :style="{backgroundImage:'url('+this.image+')'}">
      <i class="iconfont iconsuo lock" v-if="privacy>0"></i>
    </div>
    <div class="info">
      <div class="name">{{name}}</div>
      <p class="count">{{count}} 首</p>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    image: {
      type: String,
      default: ""
    },
    name: "",
    count: {
      type: Number,
      default: 0
    },
    privacy: {
      type: Number,
      default: 0
    },
    id: {
      type: Number,
      default: -1
    },
    MGB: {
      type: String,
      default: "0.4533rem"
    }
  }
};
</script>

<style lang="less" scoped>
.sh-item {
  .flex-row-nowrap(center);

  .sheetavatar {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    .bz(cover);
    margin-right: 0.16rem;
    border-radius: 0.16rem;
    position: relative;
    .lock {
      position: absolute;
      bottom: 5px;
      right: 5px;
    }
  }
  .info {
    .name {
      font-size: 14px;
      line-height: 18px;
      max-height: 36px;
      overflow: hidden;
    }
    .count {
      font-size: 12px;
      color: #a5a5a6;
      margin-top: 0.2rem;
    }
  }
}
</style>